package com.cskaoyan.javase.oop3._1interface._4case;

/**
 * 用数组模拟数据源
 * @since 17:46
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class GoodsData {
    public static final Goods[] GOODS = new Goods[10];

    static {
        GOODS[0] = new Goods("iPhone12", "苹果", 5000, 1);
        GOODS[1] = new Goods("小米12", "小米", 6000, 2);
        GOODS[2] = new Goods("华为P50", "华为", 8000, 3);
        GOODS[3] = new Goods("三星S22", "三星", 10000, 4);
        GOODS[4] = new Goods("红米K50", "红米", 2000, 5);
    }
}
